package com.qf.purchase.service;

import com.github.pagehelper.PageInfo;
import com.qf.purchase.po.PurchaseOrder;
import com.qf.purchase.po.PurchaseOrderCount;

import java.util.List;
import java.util.Map;

public interface PurchaseOrderService {
    boolean addPurchaseOrder(PurchaseOrder purchaseOrder);
    PageInfo<PurchaseOrder> getAllPurchaseOrderByPage(Map params);
    boolean updatePurchaseOrder(PurchaseOrder purchaseOrder);
    boolean delPurchaseOrder(String number);
    boolean delAllPurchaseOrderDetails(String number);
    PurchaseOrder findPurchaseOrderByNumber(String number);

   PageInfo<PurchaseOrderCount> getCountByPage(Map params);
    PageInfo<PurchaseOrderCount> getCount(Map params);
}
